dynamic Blocks (Terraform)
for_eachと合わせて使う
code:tf
dynamic "<VAR_NAME>" {
for_each = <COLLECTION>
content {
}
}
code:tf
resource "aws_elastic_beanstalk_environment" "tfenvtest" {
name = "tf-test-name"
application = "${aws_elastic_beanstalk_application.tftest.name}"
solution_stack_name = "64bit Amazon Linux 2018.03 v2.11.4 running Go 1.12.6"
dynamic "setting" {
for_each = var.settings
content {
}
}
}